package com.skillworld.webapp.model.enrollment;


import java.util.List;
import java.util.Locale;

import com.skillworld.webapp.model.util.dao.GenericDao;

import es.udc.pojo.modelutil.exceptions.InstanceNotFoundException;

public interface EnrollmentDao extends GenericDao<Enrollment,Long> 
{	
    public List<Enrollment> search(List<String> keywords, 
                                        Long user, Long dept,
                                        Locale locale,
                                        Boolean finished, 
                                        int startIndex, int count);
    public long numberOfEnrollments(List<String> keywords, 
                                    Long user, Long dept,
                                    Locale locale, Boolean finished);
    public Enrollment find(long courseId, long userId)
        throws InstanceNotFoundException;
	public boolean exists(long courseId, long userId);
	public List<Enrollment> findCourses(Long idUser);
	public Enrollment findByUserCourse(Long courseId, Long idStudent);	
}
